package com.estar.integaration.entity.moneyEntity;

import com.estar.integaration.Enum.Group;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 * 库存账龄分析表
 * </p>
 *
 *
 *
 *
 * @author YJL
 * @since 2021-12-16
 * 库存账龄分析表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class MaterialMoney implements Serializable {
    public MaterialMoney(String id, String baseMaterialCode, Double allMoney, Double stepOneMoney, Double stepTwoMoney, Double stepThreeMoney, Double stepFourMoney, String group) {
        this.id = id;
        this.baseMaterialCode = baseMaterialCode;
        this.allMoney = allMoney;
        this.stepOneMoney = stepOneMoney;
        this.stepTwoMoney = stepTwoMoney;
        this.stepThreeMoney = stepThreeMoney;
        this.stepFourMoney = stepFourMoney;
        this.group = group;
    }

    //id
    @Id
    protected String id;

    public String getBaseMaterialCode() {
        return baseMaterialCode;
    }

    public void setBaseMaterialCode(String baseMaterialCode) {
        this.baseMaterialCode = baseMaterialCode;
    }

    /**
     * 最基本的物料编码
     */
    protected String baseMaterialCode;

    /**
     * 总金额
     */
    protected Double allMoney;

    /**
     * 0-89
     */
    protected Double stepOneMoney;

    /**
     * 90-179
     */
    protected Double stepTwoMoney;

    /**
     * 180-360
     */
    protected Double stepThreeMoney;

    /**
     * 360+
     */
    protected Double stepFourMoney;

    protected String group;//组别

    /**
     * 物料名称 *
     */
    private String materialName;

    /**
     * 规格型号 *
     */
    private String spec;

    /**
     * 库存单位*
     */
    private String unit;

    /**
     * 库存数量
     */
    private String quantity;

    /**
     * 品牌 *
     */
    private String brand;





}
